<?php include view('header');?>

<div class="box3">
	<h1>项目数据导入导出</h1>
	<form id="project_io" action="tool.php?action=import" method="post" class="simple" enctype="multipart/form-data">
		<label>数据文件：</label><input type="file" id="importfile" name="importfile" style="width:240px" />
		<label>文件编码：</label><select id="encoding" name="encoding"><option value="gbk">GBK</option><option value="utf-8">UTF-8</option></select>
        <p>
            <button type="submit" id="import_btn">导入数据</button>
            <button type="button" id="export_btn" onclick="location.href='tool.php?action=export';">导出数据</button>
            <button type="button" id="download_btn" onclick="location.href='./media/import_template.csv';">下载样例</button>
        </p>
	</form>
</div>

<script type="text/javascript" src="./js/tool.js"></script>

<?php include view('footer');?>